package mware_lib;

import java.util.HashMap;
import java.util.Map;

public class ObjectReferences {
    private int port;
    private Map<NameServiceMessage, Object> references = new HashMap<NameServiceMessage, Object>();

    public int getPort() {
        return port;
    }

    public void setPort(int port) {
        this.port = port;
    }

    public void saveRef(NameServiceMessage ref, Object obj) {
        references.put(ref, obj);
    }

    public Object getObj(NameServiceMessage ref) {
        return references.get(ref);
    }
}
